﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SpeakOut.Lib
{
    public static class StringExtensionMethods
    {
        public static bool IsEmpty(this string value)
        {
            return string.IsNullOrEmpty(value);
        }

        public static int ToInt(this string value)
        {
            return int.Parse(value);
        }

        public static DateTime ToDateTime(this string value)
        {
            return DateTime.Parse(value);
        }

        public static Guid ToGuid(this string value)
        {
            return new Guid(value);
        }
    }
}
